Ext.define('TS.view.base.ProductManufList' ,{
    extend: 'Ext.grid.Panel',
    alias : 'widget.prodmanuflist',
    title : '生产企业',
    columnLines: true,
    bodyPadding:0,
    closable: true,
    padding : '1 1 1 0',
    columns:[
            {header: '企业编号', dataIndex: 'manufCode', width:100},
            {header: '企业名称', dataIndex: 'manufName', flex: 1}
    ],
    tbar :[
				{xtype:'button',action:'add',text:'添加',iconCls:'bill-add-button'},				
				{xtype:'button',action:'upd',text:'修改',iconCls:'bill-edit-button'},
				{xtype:'button',action:'del',text:'删除',iconCls:'bill-delete-button'},
				{
					xtype: 'triggerfield',
					labelWidth :50,
					fieldLabel:'查询:',
					width:250,
					margin:'0,0,10,10',
					emptyText:'请输入生产企业编码或名称',
					trigger1Cls:Ext.baseCSSPrefix + "form-search-trigger",
					onTriggerClick:function(e){
						e.keyCode=e.ENTER;//设置为Enter事件
						this.fireEvent('specialkey',this,e);//点查询图标执行搜索
					}
				}
	],
	initComponent:function(){
		var st=Ext.create('TS.store.base.ProductManufStore');
		st.load();
		this.store=st;
		this.callParent(arguments);
	}
});